JBoss Community Archive (Read Only)

Scribble

Purchasing Goods Conversation

This example shows how a protocol can be defined that 'implements' the
previous two protocol examples.

protocol BuyerSellerCreditCheck (role Buyer) {
    Buyer introduces Seller;

    Order from Buyer to Seller;

    Seller introduces CreditAgency;

    CheckCredit from Seller to CreditAgency;

    choice at CreditAgency {
        CreditOk from CreditAgency to Seller;
        Invoice from Seller to Buyer;
    } or {
        NoCredit from CreditAgency to Seller;
        Rejected from Seller to Buyer;
    }
}
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 09:37:58 UTC, last content change 2011-11-13 16:15:24 UTC.